<!-- 定时任务日志 列表-->
<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="app.dashboard"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active" ng-bind="title"></li>
        <button class="btn btn-sm btn-icon btn-default pull-right" ng-click="$state.reload()"><i
                class="icon icon-refresh"></i></button>
    </ul>
</div>

<div class="wrapper-sm">
    <div class="panel panel-default">
        <div class="row wrapper">
            <div class="col-sm-10 m-b-xs">
                <form class="form-inline" role="form">
                    <div class="form-group m-r-xs">
                        <input class="form-control input-sm" placeholder="bean名称" ng-model="params.beanName">
                    </div>
                    <button type="submit" class="btn btn-sm btn-default" ng-click="search()">搜索</button>
                </form>
            </div>
            <div class="col-sm-2">
                <button ui-sref="app.schedulejoblog.form" class="btn btn-sm btn-default pull-right m-r-md"
                        ng-if="hasAuthority('schedule:joblog:save')">新建
                </button>
            </div>
        </div>

        <div class="table-responsive">
            <table class="table table-striped table-bordered table-condensed text-nowrap">
                <thead>
                <tr class="b-t b-light">
                    <th ui-order-column="a.jobId">任务id</th>
                    <th ui-order-column="a.beanName">spring bean名称</th>
                    <th ui-order-column="a.methodName">方法名</th>
                    <th ui-order-column="a.params">参数</th>
                    <th ui-order-column="a.status">任务状态</th>
                    <th ui-order-column="a.error">失败信息</th>
                    <th ui-order-column="a.times">耗时(单位：毫秒)</th>
                    <th ui-order-column="a.createTime">执行时间</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in pageInfo.list">

                    <td>{{item.id}}</td>
                    <td>{{item.beanName}}</td>
                    <td>{{item.methodName}}</td>
                    <td>{{item.params}}</td>
                    <td class="text-center">
                        {{item.status | dict: 'YES_NO' }}
                    </td>
                    <td>{{item.error}}</td>
                    <td>{{item.times}}</td>
                    <td>{{item.createTime | date : 'yyyy-MM-dd H:mm:ss'}}</td>
                </tr>
                </tbody>
            </table>
        </div>

        <!-- 底部分页 -->
        <span data-ng-include=" 'tpl/blocks/pagination.html' "></span>
    </div>
</div>

